package cn.itsource.feign;

import cn.itsource.fallback.loginApiFallbackFactory;
import cn.itsource.pojo.dto.LoginDto;
import cn.itsource.result.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "fy-fycar-service-uaa",contextId = "loginApi",fallbackFactory = loginApiFallbackFactory.class)
public interface LoginApi {


    @PostMapping("/login/saveLogin")

    R saveLogin(@RequestBody LoginDto loginDto);
}
